Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

There was a problem

plugin directory contents not included when using git

#14

If you create a new rails project, then clone the git repository for restful authentication into the vendor plugins directory, a git add will not add the contents of the directory since it seems to be it's own git repository.


mkdir authtest
cd authtest
rails .
git init
git add .
git commit -a -m "initial commit"
cd vendor/plugins
git clone git://github.com/technoweenie/restful-authentication.git restful_authentication
cd ../../
script/generate authenticated user sessions --include-activation --aasm
git add .
git status

Output of the status command ...snip...


#       new file:   vendor/plugins/restful_authentication
#

It will add the directory, but not the contents. When you the commit and push the repository elsewhere, it will not include the contents of the restful_authentication directory, which will lead to errors when trying to deploy the project.

I just deleted the .git directory in vendor/plugins/restful_authentication which allowed me to add the files, but there might (should) be a better way.

This may not be a bug with the plugin itself, but the installation instructions need to be updated to account for this issue.

Reported by jgeiger · September 4th, 2008 @ 01:40 PM

State: resolved
Milestone: none
Assigned to: mrflip mrflip

Activity

  1. flip (at mrflip)
    flip (at mrflip)
    • Tag changed from bug, install to install

    This isn't a problem here:

    The thing you want is

    
      git submodule add
    

    http://www.kernel.org/pub/softwa...

    September 4th, 2008 @ 03:02 PM

  2. mrflip
    mrflip
    • State changed from new to resolved

    September 4th, 2008 @ 03:03 PM

  3. jgeiger
    jgeiger

    I would still suggest that it's added to the installation instructions just so it's clear to people (like me) who haven't run into this issue before.

    September 4th, 2008 @ 03:12 PM

  4. mrflip
    mrflip

    Sure. Would you please add a separate page on the wiki describing how to check out with git clone and pointing to the "git submodule" docs?

    September 4th, 2008 @ 03:52 PM

  5. mrflip

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.